﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin_ProductClass.aspx.cs"
    Inherits="V5_EShop.Admin.Admin_ProductClass" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>无标题页</title>
    <!--#include file="inc/libs.aspx"-->
</head>
<body>
    <table border="0" cellpadding="0" cellspacing="0" class="toptable" width="100%">
        <tr>
            <td class="topnavichar" style="padding-left: 14px">
                <div align="left">
                    位置导航：<a class="list_link" href="Admin_Index_Main.aspx" target="main">首页</a><img alt=""
                        border="0" src="/sysImages/folder/navidot.gif" />商品分类管理</div>
            </td>
        </tr>
    </table>
    <br />
    <table align="center" border="0" cellpadding="0" cellspacing="0" class="Navitable"
        width="100%">
        <tr>
            <td align="left">
                <a href="Admin_ProductClass.aspx">管理商品分类</a> | <a href="Admin_ProductClass.aspx?Action=edit">
                    添加</a>
            </td>
        </tr>
        <tr>
            <td align="left">
                二级分类是对网站的栏目显示
            </td>
        </tr>
    </table>
    <br />
    <form id="form2" runat="server">
    <asp:MultiView ID="MultiViewList" runat="server" ActiveViewIndex="0">
        <asp:View ID="View1" runat="server">
            <asp:GridView ID="gvList" runat="server" AutoGenerateColumns="False" OnRowCommand="gvList_RowCommand"
                GridLines="None" CssClass="listtable">
                <HeaderStyle CssClass="headertext" />
                <Columns>
                    <asp:BoundField DataField="ClassID" HeaderText="ID">
                        <ItemStyle HorizontalAlign="Center" Width="30px" />
                        <HeaderStyle CssClass="headertext" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="栏目名称">
                        <ItemTemplate>
                            <%# DataBinder.Eval(Container, "DataItem.ClassName")%>
                        </ItemTemplate>
                        <HeaderStyle CssClass="headertext" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="排序ID">
                        <ItemTemplate>
                            <%#DataBinder.Eval(Container.DataItem,"ShowOrder") %>
                        </ItemTemplate>
                        <ItemStyle Width="50px" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="状态">
                        <ItemTemplate>
                            <%#DataBinder.Eval(Container.DataItem,"IsShow").ToString()=="1"?"显示":"隐藏" %>
                        </ItemTemplate>
                        <ItemStyle Width="50px" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作">
                        <ItemTemplate>
                            <asp:Button ID="Button1" runat="server" CommandArgument='<%# Bind("ClassID")%>' CommandName="addsub"
                                Text="添加子栏目" />
                            &nbsp;<asp:Button ID="Button2" runat="server" CommandArgument='<%# Bind("ClassID")%>'
                                CommandName="go" Text="修改" />
                            &nbsp;<asp:Button ID="Button3" runat="server" CommandArgument='<%# Bind("ClassID")%>'
                                CommandName="del" Text="删除" />
                        </ItemTemplate>
                        <HeaderStyle CssClass="headertext" />
                        <ItemStyle HorizontalAlign="Center" Width="200px" />
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </asp:View>
        <asp:View ID="View2" runat="server">
            <table align="center" border="0" cellpadding="5" cellspacing="1" class="edittable">
                <tr>
                    <td colspan="2" class="headertext">
                        <asp:Label ID="lblTitle" runat="server" Text="添加栏目 "></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td width="20%" align="right">
                        栏目中文名称：
                    </td>
                    <td>
                        <asp:TextBox ID="txtClassName" runat="server" Width="274px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        父级栏目ID：
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlParentID" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="height: 75px">
                        栏目META关键字：
                    </td>
                    <td>
                        <asp:TextBox ID="txtClassKeywords" runat="server" Height="70px" TextMode="MultiLine"
                            Width="300px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        栏目META描述：
                    </td>
                    <td>
                        <asp:TextBox ID="txtClassdescription" runat="server" Height="70px" TextMode="MultiLine"
                            Width="300px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        栏目导航说明：
                    </td>
                    <td>
                        <asp:TextBox ID="txtReadMe" runat="server" Height="70px" TextMode="MultiLine" Width="300px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        排序ID：
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlShowOrder" runat="server">
                            <asp:ListItem>1</asp:ListItem>
                            <asp:ListItem>2</asp:ListItem>
                            <asp:ListItem>3</asp:ListItem>
                            <asp:ListItem>4</asp:ListItem>
                            <asp:ListItem>5</asp:ListItem>
                            <asp:ListItem>6</asp:ListItem>
                            <asp:ListItem>7</asp:ListItem>
                            <asp:ListItem>8</asp:ListItem>
                            <asp:ListItem>9</asp:ListItem>
                        </asp:DropDownList>
                        &nbsp; 1为靠最前
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        是否显示：
                    </td>
                    <td>
                        <asp:RadioButtonList ID="rbtnIsShow" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Value="0">隐藏</asp:ListItem>
                            <asp:ListItem Selected="True" Value="1">显示</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="2">
                        <asp:HiddenField ID="txtClassID" runat="server" Value="0" />
                        <asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" Text="保存栏目" />
                        <input id="Reset1" type="reset" value="重置" />
                    </td>
                </tr>
            </table>
        </asp:View>
    </asp:MultiView>
    </form>
</body>
</html>
